package com.att.service.impl;

import com.att.bean.UserOfRunBean;
import com.att.dao.UserOfRunDaoMapper;
import com.att.service.UserOfRunService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userOfRunService")
public class UserOfRunServiceImpl implements UserOfRunService {

    @Resource
    private UserOfRunDaoMapper userOfRunDaoMapper;

    @Override
    public List<UserOfRunBean> findByCondition(UserOfRunBean bean) {
        return userOfRunDaoMapper.findByCondition(bean);
    }

    @Override
    public long findByConditionCount(UserOfRunBean bean) {
        return userOfRunDaoMapper.findByConditionCount(bean);
    }

    @Override
    public List<UserOfRunBean> findNoUserOfRunCondition(UserOfRunBean bean) {
        return userOfRunDaoMapper.findNoUserOfRunCondition(bean);
    }

    @Override
    public long findNoUserOfRunCount(UserOfRunBean bean) {
        return userOfRunDaoMapper.findNoUserOfRunCount(bean);
    }

    @Override
    public boolean insert(UserOfRunBean bean) {
        return userOfRunDaoMapper.insert(bean);
    }

    @Override
    public boolean delete(UserOfRunBean bean) {
        return userOfRunDaoMapper.delete(bean);
    }

    @Override
    public List<UserOfRunBean> findUserOfRunBean(UserOfRunBean bean) {
        return userOfRunDaoMapper.findUserOfRunBean(bean);
    }

    @Override
    public List<UserOfRunBean> findUserOfRunList(UserOfRunBean bean) {
        return userOfRunDaoMapper.findUserOfRunList(bean);
    }
}
